import { PHONE, PASSWORD } from '../regexp'
/** 登录表单规则 */
export const loginRules = {
    username: [
        { required: true, message: '请输入手机号码' },
        { pattern: PHONE, message: '手机号码格式错误', trigger: 'blur' },
    ],
    password: [
        { required: true, message: '请输入密码' },
        {
            pattern: PASSWORD,
            message: '密码为6-16位数字/字符/符号，至少2种组合',
            trigger: 'blur',
        },
    ],
}
